
public class Test_sync {

	public static void main(String argv[]) {
		
		Client.init();
		SharedObject s = Client.lookup("IRC");
        if (s == null) {
            s = Client.create(new Sentence());
            Client.register("IRC", s);
        }
        
		while(true){
			s.lock_read();
			s.unlock();
			s.lock_write();
			s.unlock();
		}
	}
}
